using TireService.Data;
namespace TireService.Website.Reports.Design
{
    partial class SubscriptionTermination
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        public SubscriptionTermination(int CustomerSubscriptionId)
        {
            this.InitializeComponent();

            // Bind invoice data to report
            TireServiceDB db = new TireServiceDB();
            
            // Header data
            CustomerSubscription subscription = db.GetCustomerSubscription(CustomerSubscriptionId);
            Customer customer = db.GetCustomer(subscription.CustomerId);

            lblCompany.Text = "Mobilhjulskift.dk";
            lblCompanyAddress.Text = "Mylius Erichsens Vej 50";
            lblCompanyZipCodeCity.Text = "7400 Herning";
            lblCompanyNumber.Text = "CVR nr: 33573170";
            lblPhone.Text = "Telefon: 81 613 613";
            lblEmail.Text = "info@mobilhjulskift.dk";
            lblCustomerName.Text = customer.Name;
            lblCustomerAddress.Text = customer.Address;
            lblCustomerZipCodeCity.Text = customer.ZipCode.ToString() + " " + customer.City;
            lblCustomerSubscription.Text = subscription.CustomerId.ToString() + "-" + subscription.SubscriptionId.ToString();

            db.Dispose();
        }

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SubscriptionTermination));
            this.Detail = new DevExpress.XtraReports.UI.DetailBand();
            this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel();
            this.xrRichText2 = new DevExpress.XtraReports.UI.XRRichText();
            this.xrLine2 = new DevExpress.XtraReports.UI.XRLine();
            this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel();
            this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel();
            this.xrLine1 = new DevExpress.XtraReports.UI.XRLine();
            this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand();
            this.lblCustomerSubscription = new DevExpress.XtraReports.UI.XRLabel();
            this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel();
            this.lblPhone = new DevExpress.XtraReports.UI.XRLabel();
            this.lblEmail = new DevExpress.XtraReports.UI.XRLabel();
            this.lblCompanyNumber = new DevExpress.XtraReports.UI.XRLabel();
            this.lblCompany = new DevExpress.XtraReports.UI.XRLabel();
            this.lblCompanyAddress = new DevExpress.XtraReports.UI.XRLabel();
            this.lblCompanyZipCodeCity = new DevExpress.XtraReports.UI.XRLabel();
            this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
            this.lblCustomerZipCodeCity = new DevExpress.XtraReports.UI.XRLabel();
            this.lblCustomerAddress = new DevExpress.XtraReports.UI.XRLabel();
            this.lblCustomerName = new DevExpress.XtraReports.UI.XRLabel();
            this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel();
            this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand();
            ((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // Detail
            // 
            this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.xrLabel6,
            this.xrRichText2,
            this.xrLine2,
            this.xrLabel5,
            this.xrLabel4,
            this.xrLine1});
            this.Detail.HeightF = 208.3333F;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
            this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            // 
            // xrLabel6
            // 
            this.xrLabel6.Font = new System.Drawing.Font("Times New Roman", 12F);
            this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(39.58327F, 25.99999F);
            this.xrLabel6.Name = "xrLabel6";
            this.xrLabel6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.xrLabel6.SizeF = new System.Drawing.SizeF(555.2084F, 23F);
            this.xrLabel6.StylePriority.UseFont = false;
            this.xrLabel6.Text = "Jeg anmoder hermed om opsigelse af mit abonnement hos Mobilhjulskift.dk";
            // 
            // xrRichText2
            // 
            this.xrRichText2.Font = new System.Drawing.Font("Times New Roman", 9F);
            this.xrRichText2.LocationFloat = new DevExpress.Utils.PointFloat(39.58327F, 141.625F);
            this.xrRichText2.Name = "xrRichText2";
            this.xrRichText2.SerializableRtfString = resources.GetString("xrRichText2.SerializableRtfString");
            this.xrRichText2.SizeF = new System.Drawing.SizeF(565.6251F, 22.99998F);
            this.xrRichText2.StylePriority.UseFont = false;
            // 
            // xrLine2
            // 
            this.xrLine2.LocationFloat = new DevExpress.Utils.PointFloat(79.1666F, 124.0834F);
            this.xrLine2.Name = "xrLine2";
            this.xrLine2.SizeF = new System.Drawing.SizeF(133.3333F, 4.458282F);
            // 
            // xrLabel5
            // 
            this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(222.9169F, 105.25F);
            this.xrLabel5.Name = "xrLabel5";
            this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.xrLabel5.SizeF = new System.Drawing.SizeF(82.29156F, 22.99999F);
            this.xrLabel5.Text = "Underskrift";
            // 
            // xrLabel4
            // 
            this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(39.58327F, 105.5417F);
            this.xrLabel4.Name = "xrLabel4";
            this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.xrLabel4.SizeF = new System.Drawing.SizeF(39.58333F, 23F);
            this.xrLabel4.Text = "Dato";
            // 
            // xrLine1
            // 
            this.xrLine1.LocationFloat = new DevExpress.Utils.PointFloat(305.2084F, 124.375F);
            this.xrLine1.Name = "xrLine1";
            this.xrLine1.SizeF = new System.Drawing.SizeF(300F, 4.166672F);
            // 
            // TopMargin
            // 
            this.TopMargin.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
            this.lblCustomerSubscription,
            this.xrLabel3,
            this.lblPhone,
            this.lblEmail,
            this.lblCompanyNumber,
            this.lblCompany,
            this.lblCompanyAddress,
            this.lblCompanyZipCodeCity,
            this.xrLabel2,
            this.lblCustomerZipCodeCity,
            this.lblCustomerAddress,
            this.lblCustomerName,
            this.xrLabel1});
            this.TopMargin.HeightF = 316.3333F;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
            this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            // 
            // lblCustomerSubscription
            // 
            this.lblCustomerSubscription.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold);
            this.lblCustomerSubscription.LocationFloat = new DevExpress.Utils.PointFloat(187.5F, 226.0417F);
            this.lblCustomerSubscription.Name = "lblCustomerSubscription";
            this.lblCustomerSubscription.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.lblCustomerSubscription.SizeF = new System.Drawing.SizeF(230.2083F, 22.99998F);
            this.lblCustomerSubscription.StylePriority.UseFont = false;
            // 
            // xrLabel3
            // 
            this.xrLabel3.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold);
            this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(52.08333F, 226.0417F);
            this.xrLabel3.Name = "xrLabel3";
            this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.xrLabel3.SizeF = new System.Drawing.SizeF(125F, 22.99998F);
            this.xrLabel3.StylePriority.UseFont = false;
            this.xrLabel3.Text = "Abonnement nr";
            // 
            // lblPhone
            // 
            this.lblPhone.LocationFloat = new DevExpress.Utils.PointFloat(428.125F, 105.8333F);
            this.lblPhone.Name = "lblPhone";
            this.lblPhone.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.lblPhone.SizeF = new System.Drawing.SizeF(166.6667F, 23F);
            this.lblPhone.Text = "Telefon";
            // 
            // lblEmail
            // 
            this.lblEmail.LocationFloat = new DevExpress.Utils.PointFloat(428.125F, 130.8333F);
            this.lblEmail.Name = "lblEmail";
            this.lblEmail.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.lblEmail.SizeF = new System.Drawing.SizeF(166.6667F, 23F);
            this.lblEmail.Text = "Email";
            // 
            // lblCompanyNumber
            // 
            this.lblCompanyNumber.LocationFloat = new DevExpress.Utils.PointFloat(428.125F, 155.8333F);
            this.lblCompanyNumber.Name = "lblCompanyNumber";
            this.lblCompanyNumber.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.lblCompanyNumber.SizeF = new System.Drawing.SizeF(166.6667F, 23F);
            this.lblCompanyNumber.Text = "Cvr nr";
            // 
            // lblCompany
            // 
            this.lblCompany.Font = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold);
            this.lblCompany.LocationFloat = new DevExpress.Utils.PointFloat(428.125F, 30.83334F);
            this.lblCompany.Name = "lblCompany";
            this.lblCompany.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.lblCompany.SizeF = new System.Drawing.SizeF(166.6667F, 23F);
            this.lblCompany.StylePriority.UseFont = false;
            this.lblCompany.Text = "Mobilhjulskift.dk";
            // 
            // lblCompanyAddress
            // 
            this.lblCompanyAddress.LocationFloat = new DevExpress.Utils.PointFloat(428.125F, 55.83334F);
            this.lblCompanyAddress.Name = "lblCompanyAddress";
            this.lblCompanyAddress.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.lblCompanyAddress.SizeF = new System.Drawing.SizeF(166.6667F, 23F);
            this.lblCompanyAddress.Text = "Adresse";
            // 
            // lblCompanyZipCodeCity
            // 
            this.lblCompanyZipCodeCity.LocationFloat = new DevExpress.Utils.PointFloat(428.125F, 80.83334F);
            this.lblCompanyZipCodeCity.Name = "lblCompanyZipCodeCity";
            this.lblCompanyZipCodeCity.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.lblCompanyZipCodeCity.SizeF = new System.Drawing.SizeF(166.6667F, 23F);
            this.lblCompanyZipCodeCity.Text = "Postnr By";
            // 
            // xrLabel2
            // 
            this.xrLabel2.Font = new System.Drawing.Font("Times New Roman", 24F, System.Drawing.FontStyle.Bold);
            this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(25F, 30.83334F);
            this.xrLabel2.Name = "xrLabel2";
            this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.xrLabel2.SizeF = new System.Drawing.SizeF(310.4167F, 53.29167F);
            this.xrLabel2.StylePriority.UseFont = false;
            this.xrLabel2.Text = "Mobilhjulskift.dk";
            // 
            // lblCustomerZipCodeCity
            // 
            this.lblCustomerZipCodeCity.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold);
            this.lblCustomerZipCodeCity.LocationFloat = new DevExpress.Utils.PointFloat(39.58327F, 145.625F);
            this.lblCustomerZipCodeCity.Name = "lblCustomerZipCodeCity";
            this.lblCustomerZipCodeCity.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.lblCustomerZipCodeCity.SizeF = new System.Drawing.SizeF(228.125F, 22.99999F);
            this.lblCustomerZipCodeCity.StylePriority.UseFont = false;
            this.lblCustomerZipCodeCity.Text = "Postnr by";
            // 
            // lblCustomerAddress
            // 
            this.lblCustomerAddress.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold);
            this.lblCustomerAddress.LocationFloat = new DevExpress.Utils.PointFloat(39.58327F, 120.625F);
            this.lblCustomerAddress.Name = "lblCustomerAddress";
            this.lblCustomerAddress.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.lblCustomerAddress.SizeF = new System.Drawing.SizeF(228.125F, 22.99999F);
            this.lblCustomerAddress.StylePriority.UseFont = false;
            this.lblCustomerAddress.Text = "Adresse";
            // 
            // lblCustomerName
            // 
            this.lblCustomerName.Font = new System.Drawing.Font("Times New Roman", 12F, System.Drawing.FontStyle.Bold);
            this.lblCustomerName.LocationFloat = new DevExpress.Utils.PointFloat(39.58327F, 95.62502F);
            this.lblCustomerName.Name = "lblCustomerName";
            this.lblCustomerName.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.lblCustomerName.SizeF = new System.Drawing.SizeF(228.125F, 22.99999F);
            this.lblCustomerName.StylePriority.UseFont = false;
            this.lblCustomerName.Text = "Kundenavn";
            // 
            // xrLabel1
            // 
            this.xrLabel1.Font = new System.Drawing.Font("Times New Roman", 16F, System.Drawing.FontStyle.Bold);
            this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(38.5417F, 183.75F);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
            this.xrLabel1.SizeF = new System.Drawing.SizeF(296.875F, 29.25F);
            this.xrLabel1.StylePriority.UseFont = false;
            this.xrLabel1.Text = "Opsigelse af abonnement";
            // 
            // BottomMargin
            // 
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
            this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
            // 
            // SubscriptionTermination
            // 
            this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
            this.Detail,
            this.TopMargin,
            this.BottomMargin});
            this.Margins = new System.Drawing.Printing.Margins(100, 100, 316, 100);
            this.Version = "10.2";
            ((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

        }

        #endregion

        private DevExpress.XtraReports.UI.DetailBand Detail;
        private DevExpress.XtraReports.UI.TopMarginBand TopMargin;
        private DevExpress.XtraReports.UI.BottomMarginBand BottomMargin;
        private DevExpress.XtraReports.UI.XRLabel xrLabel1;
        private DevExpress.XtraReports.UI.XRLabel lblCustomerZipCodeCity;
        private DevExpress.XtraReports.UI.XRLabel lblCustomerAddress;
        private DevExpress.XtraReports.UI.XRLabel lblCustomerName;
        private DevExpress.XtraReports.UI.XRLabel xrLabel2;
        private DevExpress.XtraReports.UI.XRLabel lblPhone;
        private DevExpress.XtraReports.UI.XRLabel lblEmail;
        private DevExpress.XtraReports.UI.XRLabel lblCompanyNumber;
        private DevExpress.XtraReports.UI.XRLabel lblCompany;
        private DevExpress.XtraReports.UI.XRLabel lblCompanyAddress;
        private DevExpress.XtraReports.UI.XRLabel lblCompanyZipCodeCity;
        private DevExpress.XtraReports.UI.XRLabel lblCustomerSubscription;
        private DevExpress.XtraReports.UI.XRLabel xrLabel3;
        private DevExpress.XtraReports.UI.XRLine xrLine2;
        private DevExpress.XtraReports.UI.XRLabel xrLabel5;
        private DevExpress.XtraReports.UI.XRLabel xrLabel4;
        private DevExpress.XtraReports.UI.XRLine xrLine1;
        private DevExpress.XtraReports.UI.XRLabel xrLabel6;
        private DevExpress.XtraReports.UI.XRRichText xrRichText2;
    }
}
